.Net Framework > v1.1.4322 > System > Windows > Forms > MenuItem > MenuItem MenuItem()
MenuItem(String)
MenuItem(String,EventHandler)
MenuItem(String,EventHandler,Shortcut)
MenuItem(String,MenuItem[])
MenuItem(MenuMerge,Int32,Shortcut,String,EventHandler,EventHandler,EventHandler,MenuItem[])


MenuItem()

Category
Constructor
Description
Initializes a System.Windows.Forms.MenuItem with a blank caption.
Type
void
Character
public
Tags
0104BC7FDA, 02E3ABA98D, 0311417F6F

MenuItem(String)

Category
Constructor
Description
Initializes a new instance of the System.Windows.Forms.MenuItem class with a specified caption for the menu item.
Type
void
Character
public
Parameters
NameTypeDescription
textString
Tags
0104BC7FDA, 02E3ABA98D, 0311417F6F

MenuItem(String,EventHandler)

Category
Constructor
Description
Initializes a new instance of the class with a specified caption and event handler for the System.Windows.Forms.MenuItem.Click event of the menu item.
Type
void
Character
public
Parameters
NameTypeDescription
textString
onClickEventHandler
Tags
0104BC7FDA, 02E3ABA98D, 0311417F6F

MenuItem(String,EventHandler,Shortcut)

Category
Constructor
Description
Initializes a new instance of the class with a specified caption, event handler, and associated shortcut key for the menu item.
Type
void
Character
public
Parameters
NameTypeDescription
textString
onClickEventHandler
shortcutShortcut
Tags
0104BC7FDA, 02E3ABA98D, 0311417F6F

MenuItem(String,MenuItem[])

Category
Constructor
Description
Initializes a new instance of the class with a specified caption and an array of submenu items defined for the menu item.
Type
void
Character
public
Parameters
NameTypeDescription
textString
itemsMenuItem[]
Tags
0104BC7FDA, 02E3ABA98D, 0311417F6F

MenuItem(MenuMerge,Int32,Shortcut,String,EventHandler,EventHandler,EventHandler,MenuItem[])

Category
Constructor
Description
Initializes a new instance of the System.Windows.Forms.MenuItem class with a specified caption; defined event-handlers for the System.Windows.Forms.MenuItem.Click, System.Windows.Forms.MenuItem.Select and System.Windows.Forms.MenuItem.Popup events; a shortcut key; a merge type; and order specified for the menu item.
Type
void
Character
public
Parameters
NameTypeDescription
mergeTypeMenuMerge
mergeOrderInt32
shortcutShortcut
textString
onClickEventHandler
onPopupEventHandler
onSelectEventHandler
itemsMenuItem[]
Tags
0104BC7FDA, 02E3ABA98D, 0311417F6F

Software for developers
.Net Components
Delphi Components
Software for Android Developers
More information resources
WinAPI Programmer's Reference
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database